package com.youen.service;

import com.youen.dto.vo.PermissionMenuVO;
import com.youen.voInterface.IPermissionMenu;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Dell on 2018/9/7.
 */
@Service
public class LeftService {

    public String leftText(){
        List<IPermissionMenu> list = new ArrayList<>();
        IPermissionMenu iPermissionMenu = new IPermissionMenu();
        iPermissionMenu.setId("addf-23");
        iPermissionMenu.setGroupName("target");
        iPermissionMenu.setName("查看会员信息");
        iPermissionMenu.setTarget("navtab");
        iPermissionMenu.setUrl("/test/viewList");
        list.add(iPermissionMenu);
        PermissionMenuVO prPermissionMenuVO = new PermissionMenuVO("会员管理",list);
        System.out.println(JSONObject.fromObject(prPermissionMenuVO).toString());
        return JSONObject.fromObject(prPermissionMenuVO).toString();
    }
}
